﻿using System;
using System.Net;

namespace Server {
	public class Node {

		public Node(Guid name, ServiceModelServer serviceNode) {
			this.name = name;
			this.service = serviceNode;
			Ip = new IPAddress(0);
		}

		private readonly Guid name;
		public Guid Name {
			get {
				return name;
			}
		}

		public IPAddress Ip {
			get;
			set;
		}

		public Decimal Port {
			get;
			set;
		}

		private readonly ServiceModelServer service;
		public ServiceModelServer Service {
			get {
				return service;
			}
		}

		public String DisplayMember {
			get {
				return Name.ToString() + " [" + Ip.ToString() + "]";
			}
		}
	}
}
